/**
 * 
 */
package com.swim.settlementapplyorder.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 结算申请_订单关系表Entity
 * @author 刘军武
 * @version 2021-03-03
 */
@Table(name="t_settlementapply_order", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="settlement_apply_id", attrName="settlementApplyId", label="结算申请表id"),
		@Column(name="order_id", attrName="orderId", label="订单表id"),
		@Column(name="settlement_type", attrName="settlementType", label="结算类型 1表示全额 2表示首款 3表示尾款"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class SettlementapplyOrder extends DataEntity<SettlementapplyOrder> {
	
	private static final long serialVersionUID = 1L;
	private String settlementApplyId;		// 结算申请表id
	private String orderId;		// 订单表id
	private String settlementType;		// 结算类型 1表示全额 2表示首款 3表示尾款
	
	public SettlementapplyOrder() {
		this(null);
	}

	public SettlementapplyOrder(String id){
		super(id);
	}
	
	@NotBlank(message="结算类型不能为空")
	@Length(min=0, max=64, message="结算类型长度不能超过 11 个字符")
	public String getSettlementType() {
		return settlementType;
	}

	public void setSettlementType(String settlementType) {
		this.settlementType = settlementType;
	}

	@NotBlank(message="结算申请表id不能为空")
	@Length(min=0, max=64, message="结算申请表id长度不能超过 64 个字符")
	public String getSettlementApplyId() {
		return settlementApplyId;
	}

	public void setSettlementApplyId(String settlementApplyId) {
		this.settlementApplyId = settlementApplyId;
	}
	
	@NotBlank(message="订单表id不能为空")
	@Length(min=0, max=64, message="订单表id长度不能超过 64 个字符")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
}